import { IDomEditor } from '@wangeditor/editor';
import { MutableRefObject } from 'react';
/**
 * 富文本编辑器 props
 */
export interface WangEditorProps {
  editorId: string;
  saveWEInfo?: (html: string) => void;
  defaultHtml?: string;
  readOnly?: boolean;
  getText?: boolean;
  height?: number;
}

export type IWangEditor = MutableRefObject<IDomEditor | null>;
